package com.data.modules.sm.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.data.modules.sm.entity.SmCarTravel;
import com.data.modules.sm.mapper.SmCarTravelMapper;
import com.data.modules.sm.service.ISmCarTravelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description: sm_car_travel
 * @Author: data-boot
 * @Date:   2022-11-11
 * @Version: V1.0
 */
@Service
public class SmCarTravelServiceImpl extends ServiceImpl<SmCarTravelMapper, SmCarTravel> implements ISmCarTravelService {

    @Autowired
    private SmCarTravelMapper mapper;
    /**
     * 统计车辆进出情况
     * @param province
     * @return
     */
    @Override
    public Map getCarInfo(String province) {

        Map map = mapper.getCarInfo(province);
        return map;
    }
}
